package com.simon.october.cloud.user.controller;

import com.simon.october.dto.User;
import com.simon.october.service.UserService;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class RefactorController implements UserService {

    @Override
    public String hello(@RequestParam("name") String name) {
        return "@RequestParam name="+name;
    }

    @Override
    public User hello(@RequestBody User user) {
        return user;
    }
}
